﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cinema_Ticketing_System.Models.Cinema
{
    /// <summary>
    /// 电影院
    /// </summary>
    public class Cinemas
    {
        CinemaDBEntities2 db = new CinemaDBEntities2();
        /// <summary>
        /// 根据电影院编号查询电影院信息
        /// </summary>
        /// <param name="cinemaid"></param>
        /// <returns></returns>
        public cinema_table GetCinemaMessage(int cinemaid)
        {
            cinema_table cinema_Table1 = db.cinema_table.SingleOrDefault(x => x.cinemaid == cinemaid);

            return cinema_Table1;
        }
    }
}